<?php
 $bbsid=(isset($_REQUEST['id']))?$_REQUEST['id']:0;
 require 'dbcon.php';
$sql="delete from db_emp where e_id='$bbsid'";
 $rs=$db->query($sql);
 if ($rs==true)      //根据返回结果，做不同的响应
{   
    header("Location:index.php");//直接跳转
}
else
{
    // JavaScript弹出对话框跳转

    echo "<script language='javascript'>";

    echo "alert('留言删除失败！');";
    echo "window.location.href='index.php';";
    echo "</script>";
}
$db->close();
 


/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

